package com.aipartner.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * User Task Entity
 * 
 * @author AI Partner Team
 * @since 2024-01-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_task")
public class UserTask {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("task_type")
    private String taskType;
    
    @TableField("task_title")
    private String taskTitle;
    
    @TableField("task_description")
    private String taskDescription;
    
    @TableField("task_content")
    private String taskContent;
    
    @TableField("task_status")
    private Integer taskStatus;
    
    @TableField("progress")
    private Integer progress;
    
    @TableField("result_content")
    private String resultContent;
    
    @TableField("file_url")
    private String fileUrl;
    
    @TableField("error_message")
    private String errorMessage;
    
    @TableField("start_time")
    private LocalDateTime startTime;
    
    @TableField("finish_time")
    private LocalDateTime finishTime;
    
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}